package com.ruoyi.dailyoperations.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 伙食消费对象 food_consume
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
public class FoodConsume extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 账户名称 (用户名) */
    @Excel(name = "账户名称 (用户名)")
    private String username;

    /** 账户类型 (职务) */
    @Excel(name = "账户类型 (职务)")
    private String dutiesName;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dishesName;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 金额 */
    @Excel(name = "金额")
    private Long account;

    /** 用餐日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用餐日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date mealTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long mealStates;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setDutiesName(String dutiesName) 
    {
        this.dutiesName = dutiesName;
    }

    public String getDutiesName() 
    {
        return dutiesName;
    }
    public void setDishesName(String dishesName) 
    {
        this.dishesName = dishesName;
    }

    public String getDishesName() 
    {
        return dishesName;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setAccount(Long account) 
    {
        this.account = account;
    }

    public Long getAccount() 
    {
        return account;
    }
    public void setMealTime(Date mealTime) 
    {
        this.mealTime = mealTime;
    }

    public Date getMealTime() 
    {
        return mealTime;
    }
    public void setMealStates(Long mealStates) 
    {
        this.mealStates = mealStates;
    }

    public Long getMealStates() 
    {
        return mealStates;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("dutiesName", getDutiesName())
            .append("dishesName", getDishesName())
            .append("number", getNumber())
            .append("account", getAccount())
            .append("mealTime", getMealTime())
            .append("mealStates", getMealStates())
            .toString();
    }
}
